var app = getApp()
console.log(app.globalData.url) // 获取 
var serverUrl = app.globalData.url;
var getDataURL = serverUrl + "/api/hr/kehuinfo/";
//  getList(1,"");

Page({

  data: {
    toUrl: ""

  },
  onReady() {
     dd.hideLoading();
  },
  onShow(){
     dd.hideLoading();
  },
  onLoad(query) {
     dd.showLoading({
      content: '加载中...',
    });
    var app = getApp();
    var serverUrl = app.globalData.url;
    var tourls = serverUrl + "/api/hr/hetong/view"
    console.info(serverUrl + "/api/hr/kehuinfo/add")
    var that = this;
    dd.getStorage({
      key: 'userinfo',
      success: function (res) {
        var userid = res.data.userid
        // var userid = '144069533138858074'

        that.setData({
          toUrl: tourls + "?uid=" + userid
        })
        console.info(res)
      },
      fail: function (res) {
        dd.alert({ content: res.errorMessage });
      }
    });
  }
});
